import Cookies from 'js-cookie'

const TokenKey = 'TbEnt-Token'

const SYSTIMES = 'TbSys-Ttimes'

export function getToken() {
  return Cookies.get(TokenKey)
}

export function setToken(token) {
  return Cookies.set(TokenKey, token)
}

export function removeToken() {
  return Cookies.remove(TokenKey)
}

export function setSysAcceessTimes(sysId) {
  return Cookies.set(SYSTIMES + sysId, sysId)
}

export function getSysAcceessTimes(sysId) {
  return Cookies.get(SYSTIMES + sysId)
}

export function removeSysAcceessTimes(sysId) {
  return Cookies.remove(SYSTIMES + sysId)
}
